# -*- coding: utf-8 -*-

class Config(object):
    # Flask config
    SECRET_KEY = '^753*&FdFS#4D'

    SQLALCHEMY_RECORD_QUERIES = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False

class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@192.168.251.112:3306/flask_test?charset=utf8mb4&collation=utf8mb4_general_ci"

class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:!2#4%6&8@127.0.0.1:3306/flask_prod?charset=utf8mb4&collation=utf8mb4_general_ci"

config = {
    'default': DevelopmentConfig,
    'development': DevelopmentConfig,
    'production': ProductionConfig,
}